package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.User;
import com.mls.fivedistrict.pojo.UserAuth;
import com.mls.fivedistrict.pojo.UserAuthAndUser;
import com.mls.fivedistrict.pojo.UserAuthExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface UserAuthMapper {
    long countByExample(UserAuthExample example);

    int deleteByExample(UserAuthExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserAuth record);

    int insertSelective(UserAuth record);

    List<UserAuth> selectByExample(UserAuthExample example);

    UserAuth selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserAuth record, @Param("example") UserAuthExample example);

    int updateByExample(@Param("record") UserAuth record, @Param("example") UserAuthExample example);

    int updateByPrimaryKeySelective(UserAuth record);

    int updateByPrimaryKey(UserAuth record);

    User selectUser(Long userId);

    List<UserAuthAndUser> selectAndUser(@Param("params") Map<String, Object> params);

    int getUserByCraNoCount(@Param("cradNo") String cradNo);
}